<?php
class SearchForm extends BaseForm
{
  public function configure()
  {
    $this->setWidgets(array(
        'query'    => new sfWidgetFormInput()
    ));
    
    $this->validatorSchema['query'] =  new sfValidatorString(array('required' => false));

    $this->widgetSchema->setNameFormat('search[%s]');
  }
}
